$(document).ready(function($) {
    $('#full-width-slider').royalSlider({
        arrowsNav: true,
        loop: false,
        keyboardNavEnabled: true,
        controlsInside: false,
        imageScaleMode: 'fill',
        arrowsNavAutoHide: false,
        autoScaleSlider: true,
        autoScaleSliderWidth: 960,
        autoScaleSliderHeight: 350,
        controlNavigation: 'bullets',
        thumbsFitInViewport: false,
        navigateByClick: true,
        startSlideId: 0,
        autoPlay: false,
        transitionType:'move',
        globalCaption: true,
        deeplinking: {
            enabled: true,
            change: false
        },
        imgWidth: 1400,
        imgHeight: 680
    });

    //$(window).scroll(function() {       //页面滚动显示元素。
    //    if($(window).scrollTop()>=300){
    //        $('.navbar').animate({'background-color':'#000'},'slow');
    //    }else{
    //        $('.navbar').animate({'background-color':'transparent'},'slow');
    //    }
    //});

});